package com.hao.wms.service.impl;

import com.hao.wms.dao.IProductDao;
import com.hao.wms.domain.Product;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;
import com.hao.wms.service.IProductService;

import java.util.List;

public class ProductServiceImpl implements IProductService {
	private IProductDao dao;
	

	public void setDao(IProductDao dao) {
		this.dao = dao;
	}

	@Override
	public void save(Product product) {
		dao.save(product);

	}

	@Override
	public void update(Product product) {
		dao.update(product);

	}

	@Override
	public void delete(Product product) {
		dao.delete(product);

	}

	@Override
	public Product get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<Product> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
